<div class="yiiForm">

<p>
<?php echo Yii::t('views', 'Fields with <span class="required">*</span> are required.'); ?>
</p>

<?php
echo CHtml::beginForm(array('changeInfo'));
?>

<?php echo CHtml::errorSummary($model); ?>

<div class="simple">
<?php echo CHtml::activeLabelEx($model,'initials'); ?>
<?php echo CHtml::activeTextField($model,'initials',array('size'=>5,'maxlength'=>3,'onkeyup'=>'this.value = this.value.toUpperCase();', 'style' => 'text-transform: uppercase')); ?>
</div>

<div class="simple">
<?php echo CHtml::activeLabelEx($model,'first_name'); ?>
<?php echo CHtml::activeTextField($model,'first_name',array('size'=>60,'maxlength'=>100)); ?>
</div>

<div class="simple">
<?php echo CHtml::activeLabelEx($model,'last_name'); ?>
<?php echo CHtml::activeTextField($model,'last_name',array('size'=>60,'maxlength'=>100)); ?>
</div>

<div class="simple">
<?php echo CHtml::activeLabelEx($model,'language'); ?>
<?php echo CHtml::activeDropDownList($model,'language',Constants::userLanguages(), array()); ?>
</div>

<div class="simple">
<?php echo CHtml::activeLabelEx($model,'email'); ?>
<?php echo CHtml::activeTextField($model,'email',array('size'=>60,'maxlength'=>255)); ?>
</div>

<div class="simple">
<?php echo CHtml::activeLabelEx($model,'phone_number'); ?>
<?php echo CHtml::activeTextField($model,'phone_number',array('size'=>50,'maxlength'=>50)); ?>
</div>

<div class="simple">
<?php echo CHtml::activeLabel($model,'password'); ?>
<?php echo CHtml::activePasswordField($model,'password') ?>
</div>

<div class="action">
<?php echo CHtml::submitButton(Yii::t('views','Update my account')); ?>
</div>

<?php echo CHtml::endForm(); ?>

</div><!-- yiiForm -->